
import httpUtils from "../../../commons/utils/FeatchUtils";
import {basicUrl} from "../../../configs/DefaultConfig";

export async function getAllSupplierUser(params = {}) {
    Object.assign(params,{sortOrders:[{property:'code',direction:'ASC'}],quickSearchProperties:["code","name","supplierCode","supplierName"]});
    return httpUtils.postJson(basicUrl + "/supplierUserService/findVoByPage", params);
}

export async function save(params = {}) {
    return httpUtils.postJson(basicUrl + "/supplierUserService/saveSupplierUserVo",JSON.stringify(params));
}

/**
 * 删除
 * param id
 * return 操作结果
 */
export async function deleteCorp(param=''){
    return httpUtils.delete(basicUrl+"/supplierUserService/delete",param);
}

